/*
 * hal_flash.h
 *
 *  Created on: July 14, 2024
 *      Author: Liangrong_Qiu
 */

#ifndef _HAL_FLASH_H
#define _HAL_FLASH_H

/*********************************INCLUDE**************************************/
#include "config.h"
/*********************************DEFINE***************************************/



/*********************************VARIABLE*************************************/

/*********************************FUNTION**************************************/
extern int hal_Eeprom_writeCheck(uint32_t address,uint8_t *buf,uint32_t len);
extern void hal_Eeprom_Read(uint32_t address,uint8_t *buf,uint16_t len);
extern int hal_Compare_Arrays(uint8_t *arr1, uint8_t *arr2, uint32_t size);
extern void hal_flash_read(uint32_t address,uint8_t *buf,uint32_t len);
extern void hal_flash_write(uint32_t address,uint8_t *buf,uint32_t len);
extern int hal_flash_writeCheck(uint32_t address,uint8_t *buf,uint32_t len);

#endif
